import request from '../utils/request'

export function getHotPolicys(params) {
  return request({
    url: '/tpolicy/getHotPolicys',
    method: 'get',
    params
  })
}

export function getNewestPolicys(params) {
  return request({
    url: '/tpolicy/getNewestPolicys',
    method: 'get',
    params
  })
}

export function getPolicyInfoById(params) {
  return request({
    url: '/tpolicy/getPolicyInfoById',
    method: 'get',
    params
  })
}

export function selPolicyList(params) {
  return request({
    url: '/tpolicy/selPolicyList',
    method: 'get',
    params
  })
}

export function collectionPolicy(params) {
  return request({
    url: '/tpolicy/collectionPolicy',
    method: 'get',
    params
  })
}

export function getPolicyDictionaryList() {
  return request({
    url: '/dictionary/getPolicyDictionaryList',
    method: 'get'
  })
}

export function getCarousel() {
  return request({
    url: '/tpolicy/getCarousel',
    method: 'get'
  })
}
